//我们使用C语言扩展我们的内核
#include "mystringio.h"
#define BUFLEN 16

//系统启动界面
void startUp(){
	char* title = "MyTiny OS v1.1";
	char* subTitle = "Designed by CP";
	char* copyRight = "copyleft by GUN";
	char* hint = "System is ready. Press ENTER to start Shell";
	printInPos(title,strlen(title),5,23);
	printInPos(subTitle,strlen(subTitle),6,29);
	printInPos(copyRight,strlen(copyRight),8,35);
	printInPos(hint,strlen(hint),15,11);
}


//打印shell提示符
void promptString(){
	char* pmt_string = "MyTinyOs #";
	print(pmt_string);
}

void showHelp(){
	char *help_str = 
	"Shell for MytinyOs, Version 1.1 - on x86 PC\r\n"
	"This is a shell which is used for MytinyOs. These shell commands are defined as follows.Use 'help' to see the list\r\n"
	"\r\n"
	"clear -clear the termel \r\n"
	"time - get the current time \r\n"
	"drawpic - draw a animate pic \r\n"
	"poweroff - force shutdown the machine \r\n";
	print(help_str);
}

void shell(){
	//clearScreen();
	showHelp();
}
